package com.wonderland.butterfly.autoupdate.model;

import java.util.Properties;

public class GitSetting {
    private String userName;
    private String password;
    private String gitRoot;

    public GitSetting(String userName, String password, String gitRoot) {
        this.userName = userName;
        this.password = password;
        this.gitRoot = gitRoot;
    }

    public GitSetting(Properties p) {
        this(p.getProperty("git.username"), p.getProperty("git.password"), p.getProperty("git.gitRoot"));
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGitRoot() {
        return gitRoot;
    }

    public void setGitRoot(String gitRoot) {
        this.gitRoot = gitRoot;
    }
}
